if modifier_ruyu_motion == nil then
    modifier_ruyu_motion = class({})
end
--这里只能传递数字与字符串不能传递table
function modifier_ruyu_motion:OnCreated(params)
	local caster = self:GetParent()
	self.part = ParticleManager:CreateParticle("particles/units/heroes/hero_batrider/batrider_flaming_lasso.vpcf",PATTACH_ABSORIGIN_FOLLOW,caster)
	local pos = caster:GetAbsOrigin()
	local ori = Vector(params.posx,params.posy,params.posz)
	ParticleManager:SetParticleControl(self.part,1,ori)
	ParticleManager:SetParticleControl(self.part,0,pos)
	ParticleManager:SetParticleControl(self.part,2,ori)
end

function modifier_ruyu_motion:IsHidden()
	return true
end

function modifier_ruyu_motion:OnDestroy()
	ParticleManager:DestroyParticle(self.part,false)
end

function modifier_ruyu_motion:DeclareFunctions()
	local funcs = {
		MODIFIER_PROPERTY_OVERRIDE_ANIMATION
	}

	return funcs
end
function modifier_ruyu_motion:GetOverrideAnimation(  )
	return ACT_DOTA_FLAIL
end


function modifier_ruyu_motion:CheckState()
	local state = {
		[MODIFIER_STATE_NO_HEALTH_BAR] = true,
		[MODIFIER_STATE_COMMAND_RESTRICTED] = true,
		[MODIFIER_STATE_NO_UNIT_COLLISION] = true,
	}

	return state
end
